package com.lxb.blog.service;

import com.lxb.blog.entity.Blog;
import com.lxb.blog.vo.BlogQuery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface BlogService {

    Blog getBlog(Integer id);

    Page<Blog> listBlog(Pageable pageable,BlogQuery blog);

    Page<Blog> listBlog(Pageable pageable);

    Page<Blog> listBlog(Integer tagId,Pageable pageable);

    Page<Blog> listBlog(String query,Pageable pageable);

    Blog save(Blog blog);

    Blog updateBlog(Integer id,Blog blog);

    void deleteBlog(Integer id);

    List<Blog> listRecommendBlogTop(Integer size);

    void updateView(Integer id);
}
